/**
 * Created with CLion.
 * Description: 
 * User: loong
 * Date: 2019-12-27
 * Time: 17:04
 */


#ifndef CLION_WIN_QT_TABWIDGET_H
#define CLION_WIN_QT_TABWIDGET_H

#include <QtWidgets>
#include "../model/User.h"
#include "../dao/UserDao.h"
#include "../utils/MyTimeHelper.h"


namespace Ui {
    class TabWidget;
}
class TabWidget : public QTabWidget {
Q_OBJECT
public:
    TabWidget(QWidget *parent = 0);

    ~TabWidget();

private:
    Ui::TabWidget *ui;

    User user;          //用于接收用户输入

    UserDao userDao;

    void setStyle(const QString &styleName);

    MyTimeHelper *myTime;

private slots:

    bool isLogin();

    bool isSign();

signals:

    void showMainForm();

};


#endif //CLION_WIN_QT_TABWIDGET_H
